Ext.define('appmod.view.postcfs.MycfsForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.mycfsform',
    bodyPadding: 10,
	
    initComponent: function() {
      var me = this;
	  
      Ext.applyIf(me, {
	  	    fieldDefaults: {
            	labelWidth: 80
        	},
			autoScroll:true,
            items: [
				{
                    xtype: 'textfield',
                    name: 'title',
                    fieldLabel: '主题',
					anchor: '50%',
					allowBlank:false
                },
                {
                    xtype: 'textfield',
                    name: 'keyword',
                    anchor: '50%',
					fieldLabel: '关键字'
                },
				{
                    xtype: 'htmleditor',
                    name: 'content',
                    anchor: '95%',
					height: 250,
					fieldLabel: '内容'
                },
				{
					name: 'attachmentLayout',
					xtype:'fieldcontainer',
					layout: 'vbox',
					fieldLabel: '附件',
					items: [{
							xtype: 'button',
		                    text: '添加附件',
							action:'addAttachment'
						}
					]
                    
                }				
            ],
			dockedItems: [{
			    xtype: 'toolbar',
			    dock: 'bottom',
			    ui: 'footer',
			    items: [
					'->',
			        {
        				text: '保 存',
						action:'addUserAccount'
    				},{
        				text: '重 置',
						action:'reset'
    				}
			    ]
			}]			
        });

        me.callParent(arguments);
    }

});